package com.chinasoft.book.factory;

import com.chinasoft.book.mapper.BookMapper;
import com.chinasoft.book.mapper.impl.BookMapperImpl2;
import org.springframework.beans.factory.FactoryBean;

public class MapperFactoryBean implements FactoryBean<BookMapper> {
    /**
     * 获取 bean对象
     * @return
     * @throws Exception
     */
    @Override
    public BookMapper getObject() throws Exception {
        return new BookMapperImpl2();
    }


    @Override
    // 获取 bean对象的类对象
    public Class<?> getObjectType() {
        return BookMapper.class;
    }
}
